package cn.xinfei.xdecision.common.dao.component.guiderule;

import cn.xinfei.xdecision.common.BaseMapperX;
import cn.xinfei.xdecision.common.model.component.ComponentVo;
import cn.xinfei.xdecision.common.model.component.dependency.resp.DecisionComponentDependencyResp;
import cn.xinfei.xdecision.common.model.component.guiderule.RuleInfo;
import cn.xinfei.xdecision.common.model.component.guiderule.vo.RuleListReqVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Rule表数据库访问层
 */
@Mapper
public interface RuleInfoMapper extends BaseMapperX<RuleInfo> {
    List<DecisionComponentDependencyResp> getComponentCodeByVarCodes(List<String> varCodes);

    List<String> getFieldCodesByComponentCodes(List<ComponentVo> componentCodes);

    List<ComponentVo> listGeneralRuleComponentInfoByCon(RuleListReqVo ruleListReqVo);

    List<ComponentVo> listScriptRuleComponentInfoByCon(RuleListReqVo ruleListReqVo);
}

